package com.triones.yjj.controller.web;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.triones.yjj.entity.bo.StaffListParams;
import com.triones.yjj.entity.vo.RegionVO;
import com.triones.yjj.entity.vo.StaffListVO;
import com.triones.yjj.service.RegionService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 地区
 *
 * @Author: triones
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/system/region")
public class RegionController extends BaseController {

    private final RegionService regionService;

    /**
     * 查询地区列表
     */
    @GetMapping("/list")
    public List<RegionVO> list() {
        return regionService.list();
    }
}
